package com.cn.shiro_jwt_redis.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;


@TableName
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Login {

  @TableId(type = IdType.AUTO)
  private Integer loginId;
  private String username;
  @NotBlank(message = "密码不能为空")
  private String password;
  //账户所对应的用户
  @TableField(exist = false)
  private User user;
  private Integer roleState;
  private Date createTime;
  private Date updateTime;
  private Integer state;
  //账户所对应的权限列表
  @TableField(exist = false)
  private List<Menu> menuList;

  

}
